package com.itheima.springbootinits;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConfigApplication {
    @Autowired
    private Person person;

    @RequestMapping("/hello")
    public String hello() {
        System.out.println(person);
        String[] address = person.getAddress();
        for (String s : address) {
            System.out.println(s);
        }
        return "spring boot 111";
    }


}
